package common

const (
	GrpcOnlinePortTy = 1
	GrpcPvpPortTy    = 2
)

type HttpResponse struct {
	Code    int    `json:"code"`
	Desc    string `json:"desc"`
	Data    []byte `json:"data"`
	StrData string `json:"strData"`
}

type AddServerReq struct {
	SI *ServerInfo
}

type ServerInfo struct {
	Addr     string `json:"addr"`
	ServerID string `json:"serverID"`
	Port     int    `json:"port"`
}

type RemoveServerReq struct {
	ServerID string `json:"serverID"`
	Port     int    `json:"port"`
}

type GetAllServerInfoResp struct {
	SInfos []*ServerInfo
}

type GetARandServerResp struct {
	SInfo *ServerInfo
}

type ReqRegisterTopicToCenter struct {
	Topic    string
	ServerID string
}

type ReqCenterClose struct {
}
